<?php
namespace app\index\controller;

use app\BaseController;
use app\Request;

class Index extends BaseController
{
    public function index(request $request)
    {
        $res = request()->get('num',20,'intval');

        return json($res);
    }
}
